import Layout from '@/layout'
const arapRouter = {
  path: '/rp',
  component: Layout,
  redirect: '/rp/data',
  name: 'rp',
  alwaysShow: true,
  meta: {
    type: 'I',
    roles: ['1810', '1820'],
    title: '往来',
    icon: 'change'
  },
  children: [{
    path: 'receipt',
    component: () => import('@/views/rp/receipt'),
    name: 'Receipt',
    meta: {
      type: 'I',
      roles: ['1810', '181010', '181020', '181030', '181040', '181050', '181060', '181070', '181080', '181090', '181092'],
      title: '收款单'
    }
  }, {
    path: 'receiptAdd',
    component: () => import('@/views/rp/receiptAdd'),
    name: 'ReceiptAdd',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['181010'],
      title: '新增收款单'
    }
  }, {
    path: 'receiptModify',
    component: () => import('@/views/rp/receiptAdd'),
    name: 'ReceiptModify',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['181020'],
      title: '修改收款单'
    }
  }, {
    path: 'payment',
    component: () => import('@/views/rp/payment'),
    name: 'Payment',
    meta: {
      type: 'I',
      roles: ['1820', '182010', '182020', '182030', '182040', '182050', '182060', '182070', '182080', '182090', '182092'],
      title: '付款单'
    }
  }, {
    path: 'paymentAdd',
    component: () => import('@/views/rp/paymentAdd'),
    name: 'PaymentAdd',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['182010'],
      title: '新增付款单'
    }
  }, {
    path: 'paymentModify',
    component: () => import('@/views/rp/paymentAdd'),
    name: 'PaymentModify',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['182020'],
      title: '修改付款单'
    }
  }]
}
export default arapRouter
